import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
  selector: 'app-errorpage',
  templateUrl: './errorpage.component.html',
  styleUrls: ['./errorpage.component.less']
})
export class ErrorpageComponent implements OnInit {

  locationURL: any = '';

  constructor(private router: Router) { }

  ngOnInit() { 
    this.locationURL = location.href;
  }

  goMain() {
      this.router.navigateByUrl('/');
  }

}
